/*
 * Created on 2005-10-10
 */
package com.smartdio.company.editor;

import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Group;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;

import com.smartdio.company.model.Person;


public class PersonHomePanel extends Composite {

    private Group group = null;
    private Label label = null;
    private Label label1 = null;
    private Label label2 = null;
    private Label label3 = null;
    private Label label4 = null;
    public Text textCountry = null;
    public Text textProvince = null;
    private Label label10 = null;
    public Text textCity = null;
    public Text textCounty = null;
    public Text textAddress = null;
    public Text textPost = null;
    public Text textPhone = null;
    private Label label6 = null;
    private Label label9 = null;
    private Label label13 = null;
    private Label label11 = null;
    public Text textEmail = null;
    public Text textArchive = null;
    public Text textExplain = null;
    public PersonHomePanel(Composite parent, int style) {
        super(parent, style);
        initialize();
    }

    private void initialize() {
        createGroup();
        this.setLayout(new GridLayout());
        setSize(new Point(460, 200));
    }

    /**
     * This method initializes group	
     *
     */
    private void createGroup() {
        GridData gridData47 = new GridData();
        gridData47.horizontalAlignment = org.eclipse.swt.layout.GridData.END;
        GridData gridData46 = new GridData();
        gridData46.horizontalAlignment = org.eclipse.swt.layout.GridData.END;
        GridData gridData45 = new GridData();
        gridData45.horizontalAlignment = org.eclipse.swt.layout.GridData.END;
        GridData gridData44 = new GridData();
        gridData44.horizontalAlignment = org.eclipse.swt.layout.GridData.END;
        GridData gridData43 = new GridData();
        gridData43.horizontalAlignment = org.eclipse.swt.layout.GridData.END;
        GridData gridData42 = new GridData();
        gridData42.horizontalAlignment = org.eclipse.swt.layout.GridData.END;
        GridData gridData41 = new GridData();
        gridData41.horizontalAlignment = org.eclipse.swt.layout.GridData.END;
        GridData gridData40 = new GridData();
        gridData40.horizontalAlignment = org.eclipse.swt.layout.GridData.END;
        GridData gridData39 = new GridData();
        gridData39.horizontalAlignment = org.eclipse.swt.layout.GridData.END;
        GridData gridData38 = new GridData();
        gridData38.horizontalAlignment = org.eclipse.swt.layout.GridData.END;
        GridData gridData10 = new org.eclipse.swt.layout.GridData();
        gridData10.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL;
        gridData10.grabExcessHorizontalSpace = true;
        gridData10.verticalAlignment = org.eclipse.swt.layout.GridData.CENTER;
        GridData gridData9 = new org.eclipse.swt.layout.GridData();
        gridData9.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL;
        gridData9.grabExcessHorizontalSpace = true;
        gridData9.verticalAlignment = org.eclipse.swt.layout.GridData.CENTER;
        GridData gridData8 = new org.eclipse.swt.layout.GridData();
        gridData8.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL;
        gridData8.grabExcessHorizontalSpace = true;
        gridData8.verticalAlignment = org.eclipse.swt.layout.GridData.CENTER;
        GridData gridData7 = new org.eclipse.swt.layout.GridData();
        gridData7.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL;
        gridData7.grabExcessHorizontalSpace = true;
        gridData7.verticalAlignment = org.eclipse.swt.layout.GridData.CENTER;
        GridData gridData6 = new org.eclipse.swt.layout.GridData();
        gridData6.grabExcessHorizontalSpace = true;
        gridData6.verticalAlignment = org.eclipse.swt.layout.GridData.CENTER;
        gridData6.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL;
        GridData gridData5 = new org.eclipse.swt.layout.GridData();
        gridData5.grabExcessHorizontalSpace = true;
        gridData5.verticalAlignment = org.eclipse.swt.layout.GridData.CENTER;
        gridData5.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL;
        GridData gridData4 = new org.eclipse.swt.layout.GridData();
        gridData4.horizontalSpan = 3;
        gridData4.verticalAlignment = org.eclipse.swt.layout.GridData.CENTER;
        gridData4.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL;
        GridData gridData3 = new org.eclipse.swt.layout.GridData();
        gridData3.horizontalSpan = 3;
        gridData3.verticalAlignment = org.eclipse.swt.layout.GridData.CENTER;
        gridData3.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL;
        GridData gridData2 = new org.eclipse.swt.layout.GridData();
        gridData2.horizontalSpan = 3;
        gridData2.verticalAlignment = org.eclipse.swt.layout.GridData.CENTER;
        gridData2.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL;
        GridData gridData1 = new org.eclipse.swt.layout.GridData();
        gridData1.horizontalSpan = 3;
        gridData1.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL;
        gridData1.verticalAlignment = org.eclipse.swt.layout.GridData.CENTER;
        gridData1.grabExcessHorizontalSpace = true;
        GridLayout gridLayout = new GridLayout();
        gridLayout.numColumns = 4;
        GridData gridData = new org.eclipse.swt.layout.GridData();
        gridData.grabExcessHorizontalSpace = true;
        gridData.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL;
        gridData.verticalAlignment = org.eclipse.swt.layout.GridData.FILL;
        gridData.grabExcessVerticalSpace = true;
        group = new Group(this, SWT.NONE);
        group.setLayoutData(gridData);
        group.setLayout(gridLayout);
        group.setText("%home");
        label = new Label(group, SWT.NONE);
        label.setText("%personnelCountry");
        label.setLayoutData(gridData38);
        textCountry = new Text(group, SWT.BORDER);
        textCountry.setLayoutData(gridData1);
        label1 = new Label(group, SWT.NONE);
        label1.setText("%personnelProvince");
        label1.setLayoutData(gridData39);
        textProvince = new Text(group, SWT.BORDER);
        textProvince.setLayoutData(gridData2);
        label2 = new Label(group, SWT.NONE);
        label2.setText("%personnelCity");
        label2.setLayoutData(gridData40);
        textCity = new Text(group, SWT.BORDER);
        textCity.setLayoutData(gridData3);
        label10 = new Label(group, SWT.NONE);
        label10.setText("%personnelCounty");
        label10.setLayoutData(gridData41);
        textCounty = new Text(group, SWT.BORDER);
        textCounty.setLayoutData(gridData5);
        label9 = new Label(group, SWT.NONE);
        label9.setText("%personnelAddress");
        label9.setLayoutData(gridData43);
        textAddress = new Text(group, SWT.BORDER);
        textAddress.setLayoutData(gridData6);
        label3 = new Label(group, SWT.NONE);
        label3.setText("%personnelPostalcode");
        label3.setLayoutData(gridData42);
        textPost = new Text(group, SWT.BORDER);
        textPost.setLayoutData(gridData7);
        label13 = new Label(group, SWT.NONE);
        label13.setText("%personnelPhone");
        label13.setLayoutData(gridData44);
        textPhone = new Text(group, SWT.BORDER);
        textPhone.setLayoutData(gridData8);
        label4 = new Label(group, SWT.NONE);
        label4.setText("%personnelEMail");
        label4.setLayoutData(gridData45);
        textEmail = new Text(group, SWT.BORDER);
        textEmail.setLayoutData(gridData9);
        label11 = new Label(group, SWT.NONE);
        label11.setText("%personnelArchives");
        label11.setLayoutData(gridData46);
        textArchive = new Text(group, SWT.BORDER);
        textArchive.setLayoutData(gridData10);
        label6 = new Label(group, SWT.NONE);
        label6.setText("%personnelExplainText");
        label6.setLayoutData(gridData47);
        textExplain = new Text(group, SWT.BORDER | SWT.MULTI | SWT.WRAP | SWT.V_SCROLL);
        textExplain.setLayoutData(gridData4);
    }
    
    public void setValue(Person person){
    	
    }
	public void addModifyListener(ModifyListener ls){
	}
}
